#ifdef USEJNI
#include "RMSCompute_JNI.h"
using namespace yzrilyzr_dsp;
using namespace yzrilyzr_util;

JNIEXPORT jlong JNICALL Java_yzrilyzr_dsp_RMSCompute_constructor(JNIEnv *, jobject, jint bufferSize){
	RMSCompute * ptr=new RMSCompute(bufferSize);
	return reinterpret_cast<jlong>(ptr);
}
JNIEXPORT jdouble JNICALL Java_yzrilyzr_dsp_RMSCompute_rms(JNIEnv *, jobject, jlong ptr1){
	RMSCompute * ptr=reinterpret_cast<RMSCompute *>(ptr1);
	return ptr->rms();
}
JNIEXPORT jdouble JNICALL Java_yzrilyzr_dsp_RMSCompute_peak(JNIEnv *, jobject, jlong ptr1){
	RMSCompute * ptr=reinterpret_cast<RMSCompute *>(ptr1);
	return ptr->peak();
}
#endif